package cn.iocoder.yudao.module.comment.controller.admin.comment1.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 旅游线路评论新增/修改 Request VO")
@Data
public class CommentSaveReqVO {

    @Schema(description = "评论ID（主键）", requiredMode = Schema.RequiredMode.REQUIRED, example = "18920")
    private Long commentId;

    @Schema(description = "线路ID（外键）", requiredMode = Schema.RequiredMode.REQUIRED, example = "30498")
    @NotNull(message = "线路ID（外键）不能为空")
    private Long routeId;

    @Schema(description = "用户ID（外键）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1265")
    @NotNull(message = "用户ID（外键）不能为空")
    private Long userId;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "评分（1-5分，0:未评分）")
    private Integer score;

    @Schema(description = "评论时间")
    private LocalDateTime commentTime;

    @Schema(description = "是否好评（1:是，0:否）")
    private Integer isPositive;

}